<?php
require_once 'init_app.php';

set_time_limit(0); 

$coupons = ORM::factory('coupon')->get_all_actual_coupons();
foreach ($coupons as $coupon) {
    $n = $coupon->mark_products();
    echo $coupon->id.' - '.$n."\n";
}
echo "ok\n";